Component org.nuxeo.dam.layouts
In bundle org.nuxeo.dam.jsf
Contributions
- org.nuxeo.dam.layouts--widgets
- org.nuxeo.dam.layouts--widgettypes
- org.nuxeo.dam.layouts--layouts
- org.nuxeo.dam.layouts--filters
- org.nuxeo.dam.layouts--actions
XML Source
<?xml version="1.0" encoding="UTF-8"?>
<component name="org.nuxeo.dam.layouts">
<require>org.nuxeo.ecm.webapp.seam.debug.action</require>
<require>org.nuxeo.ecm.platform.preview.actions</require>
<require>org.nuxeo.ecm.platform.annotations.widgets</require>
<extension target="org.nuxeo.ecm.platform.forms.layout.WebLayoutManager"
point="widgettypes">
<widgetType name="dam_title">
<configuration>
<sinceVersion>5.7</sinceVersion>
<title>DAM Title</title>
<description>
<p>
This widget type displays the title of a document.
</p>
<p>
It requires the following fields configuration: first field maps
the document.
</p>
</description>
</configuration>
<handler-class>
org.nuxeo.ecm.platform.forms.layout.facelets.plugins.TemplateWidgetTypeHandler
</handler-class>
<property name="template">
/dam/widgets/title_widget_template.xhtml
</property>
</widgetType>
<widgetType name="damAssetViewNoDocument">
<configuration>
<sinceVersion>5.7</sinceVersion>
<title>No Document selected</title>
<description>
<p>
This widget type displays a placeholder when no document is
selected.
</p>
</description>
</configuration>
<handler-class>
org.nuxeo.ecm.platform.forms.layout.facelets.plugins.TemplateWidgetTypeHandler
</handler-class>
<property name="template">
/dam/widgets/dam_asset_view_no_document.xhtml
</property>
</widgetType>
</extension>
<extension target="org.nuxeo.ecm.platform.forms.layout.WebLayoutManager"
point="widgets">
<!-- Grid layout widgets -->
<widget name="damPanelLeft" type="container">
<properties widgetMode="view">
<property name="display">block_top</property>
<property name="hideSubLabels">true</property>
<property name="ajaxPanelId">damPanelLeft</property>
</properties>
<subWidgetRefs>
<widget>damSearchForm</widget>
</subWidgetRefs>
</widget>
<widget name="damPanelCenter" type="container">
<properties widgetMode="view">
<property name="display">block_top</property>
<property name="hideSubLabels">true</property>
<property name="ajaxPanelId">damPanelCenter</property>
</properties>
<subWidgetRefs>
<widget>damSearchResults</widget>
</subWidgetRefs>
</widget>
<widget name="damPanelRight" type="container">
<properties widgetMode="view">
<property name="display">block_top</property>
<property name="hideSubLabels">true</property>
<property name="ajaxPanelId">damPanelRight</property>
</properties>
<subWidgetRefs>
<widget>damAssetView</widget>
</subWidgetRefs>
</widget>
<!-- Main actions widgets -->
<widget name="damSearchForm" type="documentActions">
<properties widgetMode="view">
<property name="category">DAM_PANEL_LEFT</property>
</properties>
</widget>
<widget name="damSearchResults" type="documentActions">
<properties widgetMode="view">
<property name="category">DAM_PANEL_CENTER</property>
</properties>
<controls mode="any">
<control name="requireSurroundingForm">false</control>
</controls>
</widget>
<widget name="damAssetView" type="documentActions">
<properties widgetMode="view">
<property name="category">DAM_PANEL_RIGHT</property>
</properties>
<controls mode="any">
<control name="requireSurroundingForm">false</control>
</controls>
</widget>
<widget name="damSingleAssetPanelLeft" type="documentActions">
<properties widgetMode="view">
<property name="category">DAM_SINGLE_ASSET_PANEL_LEFT</property>
</properties>
<controls mode="any">
<control name="requireSurroundingForm">false</control>
</controls>
</widget>
<widget name="damSingleAssetPanelRight" type="documentActions">
<properties widgetMode="view">
<property name="category">DAM_SINGLE_ASSET_PANEL_RIGHT</property>
</properties>
<controls mode="any">
<control name="requireSurroundingForm">false</control>
</controls>
</widget>
<!-- Search -->
<widget name="damSaveSearch" type="container">
<handlingLabels>true</handlingLabels>
<labels>
<label mode="any">label.dam.search.saveSearch</label>
</labels>
<translated>true</translated>
<properties widgetMode="any">
<property name="hideSubLabels">true</property>
<property name="foldable">true</property>
<property name="foldedByDefault">true</property>
</properties>
<controls mode="any">
<control name="requireSurroundingForm">true</control>
</controls>
<subWidgets>
<widget name="saveContentView" type="saveBox">
<fields>
<field>#{damSearchActions.savedSearchTitle}</field>
</fields>
<properties widgetMode="any">
<property name="required">true</property>
<property name="placeholder">#{messages['label.dam.search.save.placeholder']}</property>
<property name="description">label.dam.search.save.description</property>
<property name="actionId">damSaveSearchAction</property>
</properties>
</widget>
</subWidgets>
</widget>
<widget name="damSearchesSelector" type="template">
<properties widgetMode="any">
<property name="template">
/dam/widgets/dam_searches_selector_widget_template.xhtml
</property>
<property name="ajaxReRender">
damPanelLeft, damPanelCenter, damPanelRight
</property>
</properties>
<controls mode="any">
<control name="requireSurroundingForm">true</control>
</controls>
</widget>
<widget name="damSearchLayout" type="container">
<handlingLabels>false</handlingLabels>
<properties widgetMode="any">
<property name="hideSubLabels">true</property>
</properties>
<controls mode="any">
<control name="requireSurroundingForm">true</control>
</controls>
<subWidgetRefs>
<widget>damSearchActions</widget>
<widget>damSearchFilters</widget>
<widget>damSearchActions</widget>
</subWidgetRefs>
</widget>
<widget name="damSearchFilters" type="contentViewSearchLayout">
<properties widgetMode="any">
<property name="contentViewName">#{damSearchActions.currentContentViewName}</property>
</properties>
</widget>
<widget name="damSearchActions" type="documentActions">
<properties widgetMode="any">
<property name="category">DAM_SEARCH_FILTER_ACTIONS</property>
<property name="actionsDisplay">buttons</property>
<property name="overallDisplay">horizontal_block</property>
<property name="hideSubLabels">true</property>
<property name="styleClass">searchFilterActions</property>
<property name="useAjaxForm">true</property>
</properties>
</widget>
<!-- Search results -->
<widget name="damSearchResultsActions" type="documentActionsWithForms">
<properties widgetMode="view">
<property name="category">DAM_SEARCH_RESULTS_ACTIONS</property>
<property name="styleClass">globalActionBar</property>
<property name="subStyleClass">contextActions</property>
<property name="overallDisplay">horizontal_block</property>
<property name="actionStyleClass">button</property>
<property name="actionsDisplay">buttons</property>
<property name="useAjaxForm">true</property>
<property name="ignoreTemplateProperty">true</property>
<property name="maxActionsNumber">3</property>
</properties>
</widget>
<widget name="damContentView" type="dropZone">
<subWidgets>
<widget name="searchResults" type="contentViewWithForms">
<properties widgetMode="any">
<property name="contentViewName">#{damSearchActions.currentContentViewName}</property>
<property name="showFilterForm">false</property>
<property name="useAjaxForm">true</property>
<property name="useAjaxPagination">true</property>
<property name="ajaxReRender">damPanelRight</property>
<property name="styleClass">alignL</property>
</properties>
</widget>
</subWidgets>
<properties widgetMode="any">
<property name="dropContext">DAM_DND</property>
<property name="cannotDrop">
#{not webActions.checkFilter('canCreateInAssetLibrary')}
</property>
</properties>
</widget>
<!-- Asset view -->
<widget name="damAssetViewNoDocument" type="damAssetViewNoDocument" />
<widget name="damAssetViewActions" type="documentActionsWithForms">
<properties widgetMode="view">
<property name="category">DAM_ASSET_VIEW_ACTIONS</property>
<property name="styleClass">globalActionBar textAlignR</property>
<property name="subStyleClass">contextActions</property>
<property name="overallDisplay">horizontal_block</property>
<property name="actionsDisplay">icons</property>
<property name="useAjaxForm">true</property>
<property name="ignoreTemplateProperty">true</property>
<property name="maxActionsNumber">9</property>
</properties>
</widget>
<widget name="damAssetViewTitle" type="dam_title">
<fields>
<field></field>
<field>dc:description</field>
</fields>
</widget>
<widget name="damAssetViewPicture" type="container">
<properties widgetMode="view">
<property name="display">block_top</property>
<property name="styleClass">assetViewContainer</property>
<property name="hideSubLabels">true</property>
</properties>
<subWidgets>
<widget name="pictureView" type="picture_view" />
</subWidgets>
</widget>
<widget name="damAssetViewVideo" type="container">
<properties widgetMode="view">
<property name="display">block_top</property>
<property name="styleClass">assetViewContainer</property>
<property name="hideSubLabels">true</property>
</properties>
<subWidgets>
<widget name="videoPlayer" type="video_player">
<properties widgetMode="any">
<property name="width">425</property>
<property name="height">235</property>
</properties>
</widget>
</subWidgets>
</widget>
<widget name="damAssetViewAudio" type="container">
<properties widgetMode="view">
<property name="display">block_top</property>
<property name="styleClass">assetViewContainer</property>
<property name="hideSubLabels">true</property>
</properties>
<subWidgets>
<widget name="audioThumbnail" type="listing_thumbnail">
<fields>
<field></field>
</fields>
</widget>
<widget name="audioPlayer" type="audio_player">
<fields>
<field>#{value}</field>
<field>file:content</field>
</fields>
</widget>
</subWidgets>
</widget>
<widget name="damAssetViewThumbnail" type="container">
<properties widgetMode="view">
<property name="display">block_top</property>
<property name="styleClass">assetViewContainer</property>
<property name="hideSubLabels">true</property>
</properties>
<subWidgets>
<widget name="thumbnail" type="listing_thumbnail">
<fields>
<field></field>
</fields>
</widget>
</subWidgets>
</widget>
<widget name="damAssetViewDescription" type="summary_current_document_description" />
<widget name="damAssetViewTags" type="summary_current_document_tagging">
<controls mode="any">
<control name="requireSurroundingForm">true</control>
</controls>
<properties widgetMode="any">
<property name="placeholder">
#{messages['label.add.tag.placeholder']}
</property>
</properties>
</widget>
<widget name="damAssetViewIndicators" type="documentActions">
<properties widgetMode="view">
<property name="category">DAM_ASSET_VIEW_INDICATORS</property>
<property name="overallDisplay">horizontal_block</property>
<property name="styleClass">indicators</property>
</properties>
</widget>
<widget name="damAssetViewStates" type="summary_current_document_states" />
<widget name="damAssetViewLikesCount" type="document_likes_count" />
<widget name="damAssetViewAnnotationsCount" type="document_annotations_count" />
<widget name="damAssetViewCommentsCount" type="document_comments_count" />
<widget name="damAssetViewVideoStoryboard" type="container">
<labels>
<label mode="any">heading.storyboard</label>
</labels>
<translated>true</translated>
<subWidgets>
<widget name="videoStoryboard" type="video_storyboard" />
</subWidgets>
<controls mode="any">
<control name="handleLabels">true</control>
</controls>
<properties widgetMode="any">
<property name="foldable">true</property>
<property name="hideSubLabels">true</property>
</properties>
</widget>
<widget name="damAssetViewVideoInfo" type="container">
<labels>
<label mode="any">label.dam.video.information</label>
</labels>
<translated>true</translated>
<subWidgets>
<widget name="videoInfo" type="layout">
<properties widgetMode="any">
<property name="name">video_info</property>
</properties>
</widget>
</subWidgets>
<controls mode="any">
<control name="handleLabels">true</control>
</controls>
<properties widgetMode="any">
<property name="foldable">true</property>
<property name="hideSubLabels">true</property>
</properties>
</widget>
<widget name="damAssetViewDamCommon" type="toggleableLayoutWithForms">
<labels>
<label mode="any">label.dam.common</label>
</labels>
<translated>true</translated>
<controls mode="any">
<control name="handleLabels">true</control>
</controls>
<properties widgetMode="any">
<property name="displayToggleActionInHeader">true</property>
<property name="foldable">true</property>
<property name="initialLayoutName">dam_common</property>
<property name="useAjaxForm">true</property>
</properties>
</widget>
<widget name="damAssetViewWorkflow" type="container">
<labels>
<label mode="any">label.document.routing.workflow</label>
</labels>
<translated>true</translated>
<subWidgets>
<widget name="assetWorkflow" type="summary_document_route">
<controls mode="any">
<control name="requireSurroundingForm">true</control>
</controls>
</widget>
</subWidgets>
<controls mode="any">
<control name="handleLabels">true</control>
</controls>
<properties widgetMode="any">
<property name="foldable">true</property>
<property name="foldedByDefault">true</property>
<property name="hideSubLabels">true</property>
</properties>
</widget>
<widget name="damAssetViewTasks" type="container">
<labels>
<label mode="any">label.document.routing.your.tasks</label>
</labels>
<translated>true</translated>
<subWidgets>
<widget name="assetTasks" type="summary_current_document_single_tasks">
<controls mode="any">
<control name="requireSurroundingForm">true</control>
</controls>
</widget>
</subWidgets>
<controls mode="any">
<control name="handleLabels">true</control>
</controls>
<properties widgetMode="any">
<property name="foldable">true</property>
<property name="hideSubLabels">true</property>
</properties>
</widget>
<widget name="damAssetViewMetadata" type="toggleableDocumentLayoutWithForms">
<labels>
<label mode="any">label.dam.metadata</label>
</labels>
<translated>true</translated>
<controls mode="any">
<control name="handleLabels">true</control>
</controls>
<properties widgetMode="any">
<property name="displayToggleActionInHeader">true</property>
<property name="foldable">true</property>
<property name="useAjaxForm">false</property>
<property name="hideDefaultActions">true</property>
<property name="additionalActionsCategory">DAM_EDIT_DOCUMENT_FORM</property>
</properties>
</widget>
<widget name="damAssetViewComments" type="container">
<labels>
<label mode="any">#{nxu:translate('label.summary.comments', documentThreadedComments.size)}</label>
</labels>
<translated>false</translated>
<subWidgets>
<widget name="comments" type="summary_current_document_comments">
<controls mode="any">
<control name="requireSurroundingForm">true</control>
</controls>
</widget>
</subWidgets>
<controls mode="any">
<control name="handleLabels">true</control>
</controls>
<properties widgetMode="any">
<property name="foldable">true</property>
<property name="foldedByDefault">true</property>
<property name="hideSubLabels">true</property>
</properties>
</widget>
<widget name="damAssetViewIPTC" type="container">
<labels>
<label mode="any">label.header.info.iptc</label>
</labels>
<translated>true</translated>
<subWidgets>
<widget name="iptc" type="layout">
<properties widgetMode="any">
<property name="name">iptc_info</property>
</properties>
</widget>
</subWidgets>
<controls mode="any">
<control name="handleLabels">true</control>
</controls>
<properties widgetMode="any">
<property name="foldable">true</property>
<property name="foldedByDefault">true</property>
<property name="hideSubLabels">true</property>
</properties>
</widget>
<widget name="damAssetViewEXIF" type="container">
<labels>
<label mode="any">label.header.info.exif</label>
</labels>
<translated>true</translated>
<subWidgets>
<widget name="exif" type="layout">
<properties widgetMode="any">
<property name="name">exif_info</property>
</properties>
</widget>
</subWidgets>
<controls mode="any">
<control name="handleLabels">true</control>
</controls>
<properties widgetMode="any">
<property name="foldable">true</property>
<property name="foldedByDefault">true</property>
<property name="hideSubLabels">true</property>
</properties>
</widget>
<widget name="damAssetViewIpRights" type="toggleableLayoutWithForms">
<labels>
<label mode="any">label.dam.iprights</label>
</labels>
<translated>true</translated>
<controls mode="any">
<control name="handleLabels">true</control>
</controls>
<properties widgetMode="any">
<property name="displayToggleActionInHeader">true</property>
<property name="foldable">true</property>
<property name="foldedByDefault">true</property>
<property name="initialLayoutName">ip_rights</property>
<property name="useAjaxForm">true</property>
</properties>
</widget>
<widget name="damSingleAssetActions" type="documentActionsWithForms">
<properties widgetMode="view">
<property name="category">DAM_SINGLE_ASSET_ACTIONS</property>
<property name="styleClass">globalActionBar textAlignL</property>
<property name="subStyleClass">contextActions</property>
<property name="overallDisplay">horizontal_block</property>
<property name="actionsDisplay">buttons</property>
<property name="useAjaxForm">true</property>
<property name="ignoreTemplateProperty">true</property>
<property name="maxActionsNumber">9</property>
</properties>
</widget>
<widget name="damSingleAssetVideo" type="container">
<properties widgetMode="view">
<property name="display">block_top</property>
<property name="styleClass">assetViewContainer</property>
<property name="hideSubLabels">true</property>
</properties>
<subWidgets>
<widget name="videoPlayer" type="video_player">
<properties widgetMode="any">
<property name="width">723</property>
<property name="height">400</property>
</properties>
</widget>
</subWidgets>
</widget>
<widget name="damc_author" type="text">
<labels>
<label mode="any">label.dam.damc.author</label>
</labels>
<translated>true</translated>
<fields>
<field>damc:author</field>
</fields>
<properties widgetMode="edit">
<property name="styleClass">dataInputText</property>
</properties>
</widget>
<widget name="damc_authoringDate" type="datetime">
<labels>
<label mode="any">label.dam.damc.authoringDate</label>
</labels>
<translated>true</translated>
<fields>
<field>damc:authoringDate</field>
</fields>
<properties widgetMode="view">
<property name="pattern">#{nxu:basicDateFormater()}</property>
</properties>
<properties widgetMode="edit">
<property name="format">#{nxu:basicDateFormater()}</property>
<property name="styleClass">dataInputTextDate</property>
</properties>
</widget>
<widget name="dam_edit_tags" type="select_tags">
<labels>
<label mode="any">label.dam.search.tagSearch</label>
</labels>
<translated>true</translated>
<fields>
<field>contextData['request/dam_bulk_edit_tags']</field>
</fields>
<properties widgetMode="edit">
<property name="canSelectNewTag">true</property>
<property name="placeholder">
#{messages['label.dam.search.tags.placeholder']}
</property>
</properties>
</widget>
</extension>
<extension target="org.nuxeo.ecm.platform.actions.ActionService"
point="actions">
<!-- Search form -->
<action id="damSaveSearch" type="widget" order="100">
<category>DAM_PANEL_LEFT</category>
<properties>
<property name="widgetName">damSaveSearch</property>
</properties>
</action>
<action id="damSearchesSelector" type="widget" order="200">
<category>DAM_PANEL_LEFT</category>
<properties>
<property name="widgetName">damSearchesSelector</property>
</properties>
</action>
<action id="damSearchLayout" type="widget" order="300">
<category>DAM_PANEL_LEFT</category>
<properties>
<property name="widgetName">damSearchLayout</property>
</properties>
</action>
<!-- Search results -->
<action id="damSearchResultsActions" type="widget" order="100">
<category>DAM_PANEL_CENTER</category>
<properties>
<property name="widgetName">damSearchResultsActions</property>
</properties>
</action>
<action id="damContentView" type="widget" order="200">
<category>DAM_PANEL_CENTER</category>
<properties>
<property name="widgetName">damContentView</property>
</properties>
</action>
<!-- Asset view -->
<action id="damAssetViewActions" type="widget" order="100">
<category>DAM_PANEL_RIGHT</category>
<category>DAM_SINGLE_ASSET_PANEL_RIGHT</category>
<properties>
<property name="widgetName">damAssetViewActions</property>
</properties>
<filter-id>hasAssetFacet</filter-id>
</action>
<action id="damAssetViewNoDocument" type="widget" order="200">
<category>DAM_PANEL_RIGHT</category>
<properties>
<property name="widgetName">damAssetViewNoDocument</property>
</properties>
<filter-id>noCurrentDocument</filter-id>
</action>
<action id="damAssetViewTitle" type="widget" order="200">
<category>DAM_PANEL_RIGHT</category>
<category>DAM_SINGLE_ASSET_PANEL_LEFT</category>
<properties>
<property name="widgetName">damAssetViewTitle</property>
</properties>
<filter-id>hasAssetFacet</filter-id>
</action>
<action id="damAssetViewThumbnail" type="widget" order="250">
<category>DAM_PANEL_RIGHT</category>
<category>DAM_SINGLE_ASSET_PANEL_LEFT</category>
<properties>
<property name="widgetName">damAssetViewThumbnail</property>
</properties>
<filter-id>hasNotVideoFacet</filter-id>
<filter-id>hasNotPictureFacet</filter-id>
<filter-id>hasNotAudioFacet</filter-id>
<filter-id>hasAssetFacet</filter-id>
</action>
<action id="damAssetViewPicture" type="widget" order="300">
<category>DAM_PANEL_RIGHT</category>
<category>DAM_SINGLE_ASSET_PANEL_LEFT</category>
<properties>
<property name="widgetName">damAssetViewPicture</property>
</properties>
<filter-id>hasPictureFacet</filter-id>
<filter-id>hasAssetFacet</filter-id>
</action>
<action id="damAssetViewVideo" type="widget" order="300">
<category>DAM_PANEL_RIGHT</category>
<properties>
<property name="widgetName">damAssetViewVideo</property>
</properties>
<filter-id>hasVideoFacet</filter-id>
<filter-id>hasAssetFacet</filter-id>
</action>
<action id="damAssetViewAudio" type="widget" order="300">
<category>DAM_PANEL_RIGHT</category>
<category>DAM_SINGLE_ASSET_PANEL_LEFT</category>
<properties>
<property name="widgetName">damAssetViewAudio</property>
</properties>
<filter-id>hasAudioFacet</filter-id>
<filter-id>hasAssetFacet</filter-id>
</action>
<action id="damAssetViewTags" type="widget" order="400">
<category>DAM_PANEL_RIGHT</category>
<category>DAM_SINGLE_ASSET_PANEL_LEFT</category>
<properties>
<property name="widgetName">damAssetViewTags</property>
</properties>
<filter-id>hasAssetFacet</filter-id>
</action>
<action id="damAssetViewDescription" type="widget" order="500">
<category>DAM_PANEL_RIGHT</category>
<category>DAM_SINGLE_ASSET_PANEL_LEFT</category>
<properties>
<property name="widgetName">damAssetViewDescription</property>
</properties>
<filter-id>hasAssetFacet</filter-id>
</action>
<action id="damAssetViewIndicators" type="widget" order="550">
<category>DAM_PANEL_RIGHT</category>
<category>DAM_SINGLE_ASSET_PANEL_LEFT</category>
<properties>
<property name="widgetName">damAssetViewIndicators</property>
</properties>
</action>
<action id="damAssetViewLikesCount" type="widget" order="10">
<category>DAM_ASSET_VIEW_INDICATORS</category>
<properties>
<property name="widgetName">damAssetViewLikesCount</property>
</properties>
<filter-id>hasAssetFacet</filter-id>
</action>
<action id="damAssetViewAnnotationsCount" type="widget" order="20">
<category>DAM_ASSET_VIEW_INDICATORS</category>
<properties>
<property name="widgetName">damAssetViewAnnotationsCount</property>
</properties>
<filter-id>hasAssetFacet</filter-id>
</action>
<action id="damAssetViewCommentsCount" type="widget" order="30">
<category>DAM_ASSET_VIEW_INDICATORS</category>
<properties>
<property name="widgetName">damAssetViewCommentsCount</property>
</properties>
<filter-id>hasAssetFacet</filter-id>
</action>
<action id="damAssetViewStates" type="widget" order="600">
<category>DAM_PANEL_RIGHT</category>
<category>DAM_SINGLE_ASSET_PANEL_LEFT</category>
<properties>
<property name="widgetName">damAssetViewStates</property>
</properties>
<filter-id>hasAssetFacet</filter-id>
</action>
<action id="damAssetViewVideoStoryboard" type="widget" order="1000">
<category>DAM_PANEL_RIGHT</category>
<category>DAM_SINGLE_ASSET_PANEL_RIGHT</category>
<properties>
<property name="widgetName">damAssetViewVideoStoryboard</property>
</properties>
<filter-id>hasVideoFacet</filter-id>
<filter-id>hasAssetFacet</filter-id>
</action>
<action id="damAssetViewVideoInfo" type="widget" order="1200">
<category>DAM_PANEL_RIGHT</category>
<category>DAM_SINGLE_ASSET_PANEL_RIGHT</category>
<properties>
<property name="widgetName">damAssetViewVideoInfo</property>
</properties>
<filter-id>hasVideoFacet</filter-id>
<filter-id>hasAssetFacet</filter-id>
</action>
<action id="damAssetViewWorkflow" type="widget" order="1300">
<category>DAM_PANEL_RIGHT</category>
<category>DAM_SINGLE_ASSET_PANEL_RIGHT</category>
<properties>
<property name="widgetName">damAssetViewWorkflow</property>
</properties>
<filter-id>hasAssetFacet</filter-id>
<filter-id>hasWorkflowProcess</filter-id>
</action>
<action id="damAssetViewTasks" type="widget" order="1400">
<category>DAM_PANEL_RIGHT</category>
<category>DAM_SINGLE_ASSET_PANEL_RIGHT</category>
<properties>
<property name="widgetName">damAssetViewTasks</property>
</properties>
<filter-id>hasAssetFacet</filter-id>
<filter-id>hasTasks</filter-id>
</action>
<action id="damAssetViewMetadata" type="widget" order="1500">
<category>DAM_PANEL_RIGHT</category>
<category>DAM_SINGLE_ASSET_PANEL_RIGHT</category>
<properties>
<property name="widgetName">damAssetViewMetadata</property>
</properties>
<filter-id>hasAssetFacet</filter-id>
</action>
<action id="damAssetViewComments" type="widget" order="1600">
<category>DAM_PANEL_RIGHT</category>
<category>DAM_SINGLE_ASSET_PANEL_RIGHT</category>
<properties>
<property name="widgetName">damAssetViewComments</property>
</properties>
<filter-id>hasAssetFacet</filter-id>
<filter-id>commentable</filter-id>
<filter-id>hasComments</filter-id>
</action>
<action id="damAssetViewIpRights" type="widget" order="1700">
<category>DAM_PANEL_RIGHT</category>
<category>DAM_SINGLE_ASSET_PANEL_RIGHT</category>
<properties>
<property name="widgetName">damAssetViewIpRights</property>
</properties>
<filter-id>hasAssetFacet</filter-id>
</action>
<action id="damAssetViewIPTC" type="widget" order="1800">
<category>DAM_PANEL_RIGHT</category>
<category>DAM_SINGLE_ASSET_PANEL_RIGHT</category>
<properties>
<property name="widgetName">damAssetViewIPTC</property>
</properties>
<filter-id>hasAssetFacet</filter-id>
<filter-id>hasPictureFacet</filter-id>
</action>
<action id="damAssetViewEXIF" type="widget" order="1900">
<category>DAM_PANEL_RIGHT</category>
<category>DAM_SINGLE_ASSET_PANEL_RIGHT</category>
<properties>
<property name="widgetName">damAssetViewEXIF</property>
</properties>
<filter-id>hasAssetFacet</filter-id>
<filter-id>hasPictureFacet</filter-id>
</action>
<action id="damSingleAssetActions" type="widget" order="100">
<category>DAM_SINGLE_ASSET_PANEL_LEFT</category>
<properties>
<property name="widgetName">damSingleAssetActions</property>
</properties>
</action>
<action id="damSingleAssetVideo" type="widget" order="300">
<category>DAM_SINGLE_ASSET_PANEL_LEFT</category>
<properties>
<property name="widgetName">damSingleAssetVideo</property>
</properties>
<filter-id>hasVideoFacet</filter-id>
<filter-id>hasAssetFacet</filter-id>
</action>
</extension>
<extension target="org.nuxeo.ecm.platform.actions.ActionService"
point="filters">
<filter id="noCurrentDocument">
<rule grant="true">
<condition>currentDocument == null</condition>
</rule>
</filter>
<filter id="hasAssetFacet">
<rule grant="true">
<facet>Asset</facet>
</rule>
</filter>
<filter id="hasWorkflowProcess">
<rule grant="true">
<condition>#{routingActions.filteredRouteModels.size() > 0}</condition>
</rule>
</filter>
<filter id="hasTasks">
<rule grant="true">
<condition>#{currentDashBoardItemsExceptPublishingTasks.size() > 0}</condition>
</rule>
</filter>
<filter id="hasComments">
<rule grant="true">
<condition>#{documentThreadedComments.size() > 0}</condition>
</rule>
</filter>
<filter id="canCreateNewAsset">
<rule grant="true">
<condition>#{damActions.canCreateNewAsset}</condition>
</rule>
</filter>
<!-- TODO move those filters to audio and video modules -->
<filter id="hasVideoFacet">
<rule grant="true">
<facet>Video</facet>
</rule>
</filter>
<filter id="hasNotVideoFacet">
<rule grant="false">
<facet>Video</facet>
</rule>
</filter>
<filter id="hasNotPictureFacet">
<rule grant="false">
<facet>Picture</facet>
</rule>
</filter>
<filter id="hasAudioFacet">
<rule grant="true">
<facet>Audio</facet>
</rule>
</filter>
<filter id="hasNotAudioFacet">
<rule grant="false">
<facet>Audio</facet>
</rule>
</filter>
</extension>
<extension target="org.nuxeo.ecm.platform.forms.layout.WebLayoutManager"
point="layouts">
<layout name="gridDamLayout">
<templates>
<template mode="any">
/layouts/layout_grid_template.xhtml
</template>
</templates>
<rows>
<row>
<properties mode="any">
<property name="nxl_gridStyleClass_0">gridStyle2 compactLayout nxDamSearchForm</property>
<property name="nxl_gridStyleClass_1">gridStyle6 nxDamSearchResults</property>
<property name="nxl_gridStyleClass_2">gridStyle4 compactLayout nxDamAssetView</property>
</properties>
<widget>damPanelLeft</widget>
<widget>damPanelCenter</widget>
<widget>damPanelRight</widget>
</row>
</rows>
</layout>
<layout name="gridDamSingleAssetLayout">
<templates>
<template mode="any">
/layouts/layout_grid_template.xhtml
</template>
</templates>
<rows>
<row>
<properties mode="any">
<property name="nxl_gridStyleClass_0">gridStyle7 nxDamSingleAssetLeft</property>
<property name="nxl_gridStyleClass_1">gridStyle5 compactLayout nxDamSingleAssetRight</property>
</properties>
<widget>damSingleAssetPanelLeft</widget>
<widget>damSingleAssetPanelRight</widget>
</row>
</rows>
</layout>
<layout name="dam_common">
<templates>
<template mode="any">/layouts/layout_default_template.xhtml</template>
</templates>
<rows>
<row>
<widget>damc_author</widget>
</row>
<row>
<widget>damc_authoringDate</widget>
</row>
</rows>
</layout>
<layout name="damListingMetadata@view">
<templates>
<template mode="any">/layouts/layout_default_template.xhtml</template>
</templates>
<rows>
<row>
<widget>damc_author</widget>
</row>
<row>
<widget>damc_authoringDate</widget>
</row>
</rows>
</layout>
<layout name="damBulkImport@create">
<templates>
<template mode="any">/layouts/layout_default_template.xhtml</template>
</templates>
<rows>
<row>
<widget>damc_authoringDate</widget>
</row>
<row>
<widget>damc_author</widget>
</row>
<row>
<widget>subjects</widget>
</row>
<row>
<widget>coverage</widget>
</row>
<row>
<widget>source</widget>
</row>
</rows>
</layout>
<layout name="damBulkEdit@edit">
<templates>
<template mode="any">/layouts/layout_bulkedit_template.xhtml</template>
</templates>
<rows>
<row>
<widget>dam_edit_tags</widget>
</row>
<row>
<widget>damc_author</widget>
</row>
<row>
<widget>damc_authoringDate</widget>
</row>
<row>
<widget>subjects</widget>
</row>
<row>
<widget>coverage</widget>
</row>
</rows>
</layout>
<layout name="ip_rights">
<templates>
<template mode="any">/layouts/layout_default_template.xhtml</template>
</templates>
<rows>
<row>
<widget>media_type</widget>
</row>
<row>
<widget>geo_broadcast</widget>
</row>
<row>
<widget>copyright_holder</widget>
</row>
<row>
<widget>licence</widget>
</row>
<row>
<widget>embargo_date</widget>
</row>
<row>
<widget>expiration_date</widget>
</row>
</rows>
<widget name="media_type" type="selectOneDirectory">
<translated>true</translated>
<fields>
<field>ipr:media_type</field>
</fields>
<properties widgetMode="any">
<property name="directoryName">dam_media_type</property>
<property name="localize">true</property>
</properties>
<properties widgetMode="edit">
<property name="ordering">label</property>
<property name="cssStyleClass">dataInputText</property>
</properties>
</widget>
<widget name="geo_broadcast" type="selectOneDirectory">
<translated>true</translated>
<fields>
<field>ipr:geo_broadcast</field>
</fields>
<properties widgetMode="any">
<property name="directoryName">dam_geo_broadcast</property>
<property name="localize">true</property>
</properties>
<properties widgetMode="edit">
<property name="ordering">label</property>
<property name="cssStyleClass">dataInputText</property>
</properties>
</widget>
<widget name="copyright_holder" type="text">
<translated>true</translated>
<fields>
<field>ipr:copyright_holder</field>
</fields>
<properties widgetMode="edit">
<property name="styleClass">dataInputText</property>
</properties>
</widget>
<widget name="licence" type="selectOneDirectory">
<translated>true</translated>
<fields>
<field>ipr:licence</field>
</fields>
<properties widgetMode="any">
<property name="directoryName">dam_licence</property>
<property name="localize">true</property>
</properties>
<properties widgetMode="edit">
<property name="ordering">label</property>
<property name="cssStyleClass">dataInputText</property>
</properties>
</widget>
<widget name="embargo_date" type="datetime">
<translated>true</translated>
<fields>
<field>ipr:embargo_date</field>
</fields>
<properties widgetMode="view">
<property name="pattern">#{nxu:basicDateFormater()}</property>
</properties>
<properties widgetMode="edit">
<property name="format">#{nxu:basicDateFormater()}</property>
<property name="styleClass">dataInputTextDate</property>
</properties>
</widget>
<widget name="expiration_date" type="datetime">
<translated>true</translated>
<fields>
<field>ipr:expiration_date</field>
</fields>
<properties widgetMode="view">
<property name="pattern">#{nxu:basicDateFormater()}</property>
</properties>
<properties widgetMode="edit">
<property name="format">#{nxu:basicDateFormater()}</property>
<property name="styleClass">dataInputTextDate</property>
</properties>
</widget>
</layout>
</extension>
</component>